from mitmproxy import http, ctx
from mitmproxy.tools.main import mitmdump


class Events:

    def http_connect(self, flow: http.HTTPFlow):
        pass

    def requestheaders(self, flow: http.HTTPFlow):
        pass

    def request(self, flow: http.HTTPFlow):
        pass

    def responseheaders(self, flow: http.HTTPFlow):
        pass

    def response(self, flow: http.HTTPFlow):
        pass

    def error(self, flow: http.HTTPFlow):
        pass


addons = [
    Events()
]


if __name__ == '__main__':
    mitmdump(['-p', '8080', '-s', __file__])
